package com.pine.sunshineelder.checkin.ao.elder;

import java.time.LocalDate;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Length;

import lombok.Data;
@Data
public class ElderAddAo {
	@NotBlank
	@Length(min=2,max=16,message = "名字长度在2-16之间")
	private String name;
	@NotBlank
	@Length(min=6,max=16,message = "账号长度在6-16之间")
	@Pattern(regexp = "\\w+",message="账号只能为数字或英文")
	private String account;
	private Boolean male;
	private LocalDate birthday;
	@NotBlank
	@Pattern(regexp ="\\d{15}|\\d{18}" ,message="身份证号只能为15或18位")
	private String idCard;
	private String privatePhone;
	private String address;
	private String image;
	private String createUserId;
	@NotBlank
	private String no;
	private Integer height;
	private Integer weight;
	private Integer booldType;
	private Integer marriage;
	private String medicalRecord;
	private String remark;
	private LocalDate enterTime;
	
	

}
